* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.score-container p {
    font-weight: bold;
    color: #555;
}

.score-container span {
    color: #e74c3c;
    font-size: 1.3em;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.hole {
    width: 100%;
    height: 120px;
    background-color: #34495e;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.5);
}

.mole {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background-color: #8b4513;
    border-radius: 50% 50% 0 0;
    transition: bottom 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mole::before {
    content: "🐭";
    font-size: 2.5em;
}

.hole.active .mole {
    bottom: 0;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

button {
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-btn {
    background-color: #27ae60;
    color: white;
}

#start-btn:hover {
    background-color: #229954;
    transform: translateY(-2px);
}

#reset-btn {
    background-color: #e74c3c;
    color: white;
}

#reset-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

#play-again-btn {
    background-color: #3498db;
    color: white;
    margin-top: 15px;
}

#play-again-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

#game-over h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 2em;
}

#game-over p {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.hidden {
    display: none;
}

@media (max-width: 500px) {
    .game-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .hole {
        height: 100px;
    }
    
    .mole::before {
        font-size: 2em;
    }
}